import request from '@/utils/request'

export const api = {
  dict: 'api/xj_data',
  dictDataSubmit: 'api/xj_data/addData',
  dictList: 'api/xj_data/get_type',
  dict_xj: 'api/xj_data/getTargetData'
}

export function getDict (params) {
  return request({
    url: api.dictList,
    method: 'post',
    params
  })
}

export function getXJDict () {
  return request({
    url: api.dict_xj,
    method: 'post'
  })
}

export function dictDataSubmit (params) {
  return request({
    url: api.dictDataSubmit,
    method: 'post',
    params
  })
}
